package com.company.calendar.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;

import java.time.LocalTime;

/**
 * 工作日规则DTO
 * 
 * @author System
 * @since 1.0.0
 */
@Data
public class WorkdayRuleDTO {
    
    private Long id;
    
    private Long configId;
    
    @NotNull(message = "星期几不能为空")
    @Min(value = 1, message = "星期几必须在1-7之间")
    @Max(value = 7, message = "星期几必须在1-7之间")
    private Integer dayOfWeek;
    
    @NotNull(message = "是否工作日不能为空")
    private Boolean isWorkday;
    
    private LocalTime workStartTime;
    
    private LocalTime workEndTime;
}


